Skip to content

[Debug] Prompt when launching debug session with 'Skip All Breakpoints' enabled #2114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SougandhS
Copy link
Contributor

This pull request introduces a warning dialog that appears when a user attempts to start a debug session while the "Skip All Breakpoints" option is enabled. The goal is to prevent confusion caused by breakpoints being silently ignored, which often leads users to believe the debugger is malfunctioning.
eg https://www.reddit.com/r/eclipse/comments/13zt4ll/debugger_not_working/
eg https://bugs.eclipse.org/bugs/show_bug.cgi?id=578000

The popup will provide option to disable the warning forever (which can be enabled later on from Run/Debug settings) and option disable skip
image

image
This will be helpful for new users who may not understand the debug settings and could get confused when breakpoints don’t work as expected.
SkipBpPrmpt.mp4

Copy link
Contributor

github-actions bot commented Aug 8, 2025

Test Results

 1 947 files  ±0   1 947 suites  ±0   1h 36m 22s ⏱️ - 1m 19s
 4 720 tests ±0   4 696 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 160 runs  ±0  13 993 ✅ ±0  167 💤 ±0  0 ❌ ±0 

Results for commit 36eae5c. ± Comparison against base commit 401d483.

♻️ This comment has been updated with latest results.

@SougandhS
Copy link
Contributor Author

Hi @iloveeclipse
Could you please check this when you are available ?

*
* @since 3.19
*/
public class SkipBreakpointsWarning extends Dialog {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you have just implemented MessageDialogWithToggle again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But MessageDialogWithToggle supports only 1 toggle option, so created a custom one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need two options? Just warn and user can enable or disable "skip breakpoints" after that if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this approach would help the user quickly disable the option if needed. But I can go with your suggestion

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also you could provide a push button for the disable disabled action so that there is no expectation that the check state might be persisted like the don’t ask again check box.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also you could provide a push button for the disable disabled action so that there is no expectation that the check state might be persisted like the don’t ask again check box

You mean remove the checkbox and add a "disable" button right ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Just keep in mind that the double negative on disable the disable all is also a potential point of confusion. Enable Breakpoints might be better. The opinions of others would be welcome.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@merks
How about this ?
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that seems fine (to me).

@iloveeclipse
Copy link
Member

The popup will provide option to disable the warning forever (which can be enabled later on from Run/Debug settings) and option disable skip
image

This looks like a yet another implementation of MessageDialogWithToggle. Please use standard implementation if possible.

@SougandhS SougandhS force-pushed the SkipBreakpointsPrompt branch from 5ec22c9 to 7ae8b24 Compare August 11, 2025 06:02
This commit adds a warning prompt when User launch application in debug
mode with `Skip All Breakpoints` enabled
@SougandhS SougandhS force-pushed the SkipBreakpointsPrompt branch from 7ae8b24 to 36eae5c Compare August 11, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants